az-account
Verified for current stable LTS
Az Account Command: Set A Subscription To Be The Currently Active Subscription
Use for Set a subscription to be the currently active subscription with Az Account. Exact CLI syntax to Set a subscription to be the currently active subscription using Az Account.
When to use this: Use for Set a subscription to be the currently active subscription with Az Account.
Command Syntax
az account set -s <subscription_id> az account set -s <subscription_id> Command Breakdown
-s- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to Set a subscription to be the currently active subscription using Az Account.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Az Account Command: List Subscriptions
az account list Az Account Command: Set Subscription az account set -s <subscription_id> Az Account Command: List Locations az account list-locations Az Account Command: Get Access Token az account get-access-token --resource-type <ms-graph> Az Account Command: Show Subscription Details az account show -o <json|tsv|table|yaml>